package com.fingard.dsp.bank.reqrespobj.batchbill;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.batchbill.detail.ReqBatchSubmitCancelDetail;
import com.fingard.xml.XmlTextReader;

/**
 * Created by F on 2019/10/20.
 */
public class ReqBatchSubmitCancel extends RequestBase {
    public ReqBatchSubmitCancelDetail detail;
    private XmlTextReader xmlReader;

    public boolean readRecord() throws Exception {
        detail = null;
        if (xmlReader.read("/ATSYH/TransReq/TransParam/DetailRecord")) {
            detail = new ReqBatchSubmitCancelDetail(xmlReader.readedXElement);
            return true;
        } else {
            return false;
        }
    }

    public ReqBatchSubmitCancel(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        xmlReader = p_xmlReader;

    }
}
